﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TPAMain数据维护工具V2
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void tsmiConnectStringSettings_Click(object sender, EventArgs e)
        {
            frmSetConnectString newFrmSetConnectString = new frmSetConnectString();
            newFrmSetConnectString.ShowDialog();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            this.Text = "TPAMain数据维护工具V2" + " - " + Properties.Settings.Default.Host + " - " + Properties.Settings.Default.DBName;
        }

        private void tsmiModifyGD_Click(object sender, EventArgs e)
        {
            frmGDEditor newFrmGDEditor = new frmGDEditor();
            newFrmGDEditor.MdiParent = this;
            newFrmGDEditor.WindowState = FormWindowState.Maximized;
            newFrmGDEditor.Show();
        }

        private void tsmiQJFixer_Click(object sender, EventArgs e)
        {
            frmQJFixer newFrmQJFixer = new frmQJFixer();
            newFrmQJFixer.MdiParent = this;
            newFrmQJFixer.WindowState = FormWindowState.Maximized;
            newFrmQJFixer.Show();
        }

        private void tsmiViewLog_Click(object sender, EventArgs e)
        {
            frmLogViewer newFrmLogViewer = new frmLogViewer();
            newFrmLogViewer.MdiParent = this;
            newFrmLogViewer.WindowState = FormWindowState.Maximized;
            newFrmLogViewer.Show();
        }

        private void tsmiAddGD_Click(object sender, EventArgs e)
        {
            frmAddGD newFrmAddGD = new frmAddGD();
            newFrmAddGD.MdiParent = this;
            newFrmAddGD.WindowState = FormWindowState.Maximized;
            newFrmAddGD.Show();
        }

        private void tsmiImportGxjy_Click(object sender, EventArgs e)
        {
            frmImportGxjy newFrmImportGxjy = new frmImportGxjy();
            newFrmImportGxjy.MdiParent = this;
            newFrmImportGxjy.WindowState = FormWindowState.Maximized;
            newFrmImportGxjy.Show();
        }
    }
}
